package com.rollway.restful.annotation;


import com.rollway.restful.RestfulClientsRegistrar;
import com.rollway.restful.RestfulConfig;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import({RestfulClientsRegistrar.class, RestfulConfig.class})
@EnableConfigurationProperties(RestfulConfig.class)
public @interface EnableRestfulClients {


    @AliasFor("basePackages")
    String[] value() default {};

    @AliasFor("value")
    String[] basePackages() default {};
}
